<?php
class SeedFinishUnlockMissionAction extends SzAbstractAction
{
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
    );

    /**
     *  完成种子解锁任务
     *
     * @param int $userId
     * @param int $missionId
     * @return SzResponse
     */
    public function execute($userId, $missionId)
    {
        return $this->buildResponse(
            SeedService::get()->finishMission($userId, $missionId)
        );
    }
}